/**
 * @author Andrey Anisimov <hercules@inbox.ru>
 */

import core.effect.easing.None;

class Regular extends None {

    this.easeIn = function (t, b, c, d) {
        return c * (t /= d) * t + b;
    };

    this.easeOut = function (t, b, c, d) {
        return -c * (t /= d) * (t - 2) + b;
    };

    this.easeInOut = function (t, b, c, d) {
        return ((t /= d / 2) < 1) ? (c / 2 * t * t + b) : (-c / 2 * ((--t) * (t - 2) - 1) + b);
    };
}